import request from '@/axios/axios.js'
//产品表
export const productAllApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProduct/getAll',
        data: params
    })
}

//路线编辑
export const editApi = (params) => {
    return request({
        method: 'put',
        url: '/api/basedataProcessRoute/update',
        data: params
    })
}
//路线新增
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcessRoute/save',
        data: params
    })
}
// 删除
export const deleteApi = (params) => {
    return request({
        method: 'delete',
        url: '/api/basedataProcessRoute/delete',
        data: params
    })
}
//路线查询
export const productApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcessRoute/getPage',
        data: params
    })
}


// 工序表
export const editProcedureApi = (params) => {
    return request({
        method: 'put',
        url: '/api/basedataProcedure/update',
        data: params
    })
}
export const addProcedureApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcedure/save',
        data: params
    })
}
export const deleteProcedureApi = (params) => {
    return request({
        method: 'delete',
        url: '/api/basedataProcedure/delete',
        data: params
    })
}
export const productProcedureApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcedure/getPage',
        data: params
    })
}


//工序资源表
export const editResourceApi = (params) => {
    return request({
        method: 'put',
        url: '/api/basedataProcedure/update',
        data: params
    })
}
export const addResourceApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcedure/save',
        data: params
    })
}
export const deleteResourceApi = (params) => {
    return request({
        method: 'delete',
        url: '/api/basedataProcedure/delete',
        data: params
    })
}
export const productResourceApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProcedure/getPage',
        data: params
    })
}